//
//  ZTStatus.m
//  MQTTNetworkTools
//
//  Created by Yahaong on 16/8/3.
//  Copyright © 2016年 yahaong. All rights reserved.
//

#import "ZTStatus.h"

@implementation ZTStatus

- (instancetype)init
{
    self = [super init];
    if (self) {
        _curOprStatus =  ZTObjectOprStatusNone;
    }
    return self;
}
- (void) startOpr{
    _curOprStatus = ZTObjectOprStatusStart;
    _curOprtip = nil;
}
- (void) endOpr{
    _curOprStatus = ZTObjectOprStatusNone;
    _curOprtip = nil;
}

- (void) showMsg{
    _curOprStatus = ZTObjectOprStatusShowMsg;
    [self performSelector:@selector(endOpr) withObject:nil afterDelay:3.0f];
}
@end
